package com.liwujie.feign;


import com.liwujie.common.order.UserAddrVO;
import com.liwujie.core.bean.ResultBean;
import com.liwujie.core.feign.FeignInsideAuthConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户地址feign连接
 * @author FrozenWatermelon
 * @date 2020/12/07
 */
@FeignClient(name = "sc-user",contextId = "userAddr")
public interface UserAddrFeignClient {


    /**
     * 根据地址id获取用户地址信息
     * @param addrId 地址id
     * @return 用户地址信息
     */
    @GetMapping("/api/userAddr/getUserAddrByAddrId")
    ResultBean<UserAddrVO> getUserAddrByAddrId(@RequestParam("addrId") Long addrId);

}
